/*
 *
 * *******************************************************************
 *   @项目名称: BHex Android
 *   @文件名称: AppData.java
 *   @Date: 11/29/18 3:21 PM
 *   @Author: chenjun
 *   @Copyright（C）: 2018 BlueHelix Inc.   All rights reserved.
 *   注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的.
 *  *******************************************************************
 *
 */

package io.bhex.baselib.constant;


import io.bhex.baselib.BuildConfig;
import io.bhex.baselib.network.listener.SimpleResponseListener;
import io.bhex.sdk.account.bean.MobileCodeListBean;


public class AppData {

    //法币保留位数
    public static final int DIGIT_LEGAL_MONEY = 4;
    public static final int DIGIT_FUNDING_FEE_RATE = 4;
    public static final int DIGIT_MAX_NUM = 16;
    public static final long DOWN_TIME_INTERVAL_CODE = 1000;
    public static final long DOWN_TIME_CODE = BuildConfig.DEBUG ? 6000 : 60000;
    public static final int DIGIT_24H_AMOUNT = 2;//24H涨跌量保留2位
    public static final int DIGIT_24H_AMOUNT_CONTACT = 0;//24H涨跌量保留0位
    public static boolean HOME_LOCKED = false;    //是否要开启APP锁，默认不开启
    public static boolean isHome = false;   //是否是压入了后台
    public static boolean isFirstLaunch=false;//是否是首次启动
    public static long HOME_TIME = 0L;  //压入home后台时间
    public static final long HOME_ALLOW_TIME = BuildConfig.DEBUG ? 1000 * 60 * 5 : 1000 * 60 * 60;   //允许压入home后台时间 60m
    //    public static final long HOME_ALLOW_TIME = 1 * 60 * 1000;   //允许压入home后台时间
    public static final long EXIT_WAIT_TIMEOUT = 3000;//连续两次点击返回退出APP
    //自选默认Key
    public static final String KEY_FAVORITE = "KEY_FAVORITE";

    //隐藏小额
    public static final Double HIDE_MIN_BTC= 0.001d;

    public static class Config{
        public final static int volumeDotLength = 2;
        public final static int volumeDotZero = 0;
        public final static int volumeDotThree = 3;
        //timer默认延迟0秒
        public static final long TIMER_DELAY_DEFAULT_VALUE = 0l;
        //timer默认区间2秒
        public static final long TIMER_PERIOD_DEFAULT_VALUE = 3000l;
        //socket重试时间
        public static final long SOCKET_RETRY_DELAY = 3000l;
        //默认的小数位
        public static final int DIGIT_DEFAULT_VALUE = 8;
        //四位小数
        public static final String DIGIT_DEPTH_DEFAULT = "0.0001";

        public static final String OPTION_FEE_DEFAULT = "0.005";
        //分页默认20条
        public static final int PAGE_LIMIT = 20;
        public static final String TIME_FORMAT = "HH:mm:ss yyyy/MM/dd";
        public static final String TIME_FORMAT2 = "yyyy/MM/dd HH:mm:ss ";
        public static final String TIME_FORMAT_MD = "MM/dd";
        public static final String LEGAL_MONEY_ABOUT_VALUE_CAL_UNIT = "BTC";
    }

    public static class Network{
        public static final int NETWORK_TYPE_UNKNOWN = 0;
        public static final int NETWORK_TYPE_NO = 1;
        public static final int NETWORK_TYPE_YES = 2;
        public static final int NETWORK_TYPE_WIFI = 3;
        public static final int NETWORK_TYPE_LOW = 4;
        public static final int NETWORK_TYPE_MID = 5;
        public static final int NETWORK_TYPE_HEIGHT = 6;
    }

    public static class SPKEY{
        public static final String URL_DOMAIN = "URL_DOMAIN";
        public static final String USER_INFO_ID = "USER_INFO_ID";
        public static final String USER_INFO_EMAIL = "USER_INFO_EMAIL";
        public static final String USER_INFO_MOBILE = "USER_INFO_MOBILE";
        public static final String USER_INFO_BINDGA = "USER_INFO_BINDGA";
        public static final String USER_INFO_ACCOUNT_ID = "USER_INFO_ACCOUNT_ID";
        public static final String USER_INFO_TOKEN = "USER_INFO_TOKEN";
        public static final String USER_ACCOUNT_KEY = "user_account";
        public static final String USER_ACCOUNT_MODE_KEY = "user_account_mode";
        public static final String APP_EXIT = "app_exit";
        //是否设置过-皮肤模式
        public static final String SKIN_IS_SET_BLACK_MODE = "IS_SET_SKINMODE";
        //皮肤模式
        public static final String SKIN_IS_BLACK_MODE = "SKINMODE";
        //socket地址
        public static final String SOCKET_WSS = "socket_wss";
        public static final String ASSET_EYE_SWITCHER = "asset_eye_switcher";
        public static final String GESTURE_PWD_KEY = "gesturepwdkey";
        //手势轨迹
        public static final String GESTURE_TRACE_KEY = "gesture_trace_key";
        public static final String FINGER_PWD_KEY = "fingerpwdkey";
        public static final String USER_AUTH_FINGER = "fingerauth";
        public static String USER_INFO_KEY ="USER_INFO_KEY";

        public static final String FINGER_tip_KEY = "fingertipkey";
        //自选币对
        public static final String FAVORITE_COINPAIR ="FAVORITE_COINPAIR";
        //搜索的币对
        public static final String SEARCH_COINPAIR ="SEARCH_COINPAIR";
    }

    public static class TICKER{
        //深度数据请求条数限制
        public static final int LIMIT_DEPTH = 100;
        public static final long REFRESH_FREQUENCY = 250l;
        public static final int TOPN_LIMIT = 10;
        //业务类型，默认为全部。-1: 全部，1 币币，3 期权，4 合约
        public static final int MARKET_TYPE_ALL = -1;
        public static final int MARKET_TYPE_BB = 1;
        public static final int MARKET_TYPE_OPTION = 3;
        public static final int MARKET_TYPE_CONTRACT = 4;
        public static final int DEPTH_MAX_QUEUE_WATING_COUNT = 50;  //深度数据队列最大处理数
    }

    public class INTENT {
        public static final String EXCHANGE_ID = "exchangeId";
        public static final String SYMBOLS = "symbols";
        public static final String COINPAIR = "coinPair";
        public static final String SYMBOLS_BASE_TOKEN = "BASE_TOKEN";
        public static final String SYMBOLS_QUOTE_TOKEN = "QUOTE_TOKEN";
        public static final String MERGE_DIGITS = "mergedigits";
        public static final String IS_FAVORITE = "isFavorite";

        //登录调用者
        public static final String LOGIN_CALLER_BOOT = "login_caller_boot";//引导页
        public static final String LOGIN_CALLER = "login_caller";
        public static final String LOGIN_CALLER_TRADE = "login_caller_trade";
        public static final String LOGIN_CALLER_WEB = "login_caller_web";
        public static final String LOGIN_CALLER_MAIN = "login_caller_main";
        public static final String LOGIN_CALLER_TAB_ACCOUNT = "login_caller_tab_account";
        public static final String LOGIN_CALLER_OTC = "login_caller_otc";
        public static final String LOGIN_CALLER_BASE_INTERCEPT = "login_caller_base_intercept";
        public static final String FINGER_CALLER_SECURITY = "finger_caller_security";
        public static final String KEY_ORDER = "order";
        public static final String KEY_ASSET = "asset";
        public static final String KEY_RECORD_TYPE = "RECORD_TAB_TYPE";
        public static final String FROM = "from";
        public static final String COINPAIR_FROM_KLINE = "kline";
        public static final String COINPAIR_FROM_TRADE = "trade";
        public static final String MAIN_TAB = "main_tab";
        public static final String HOME_TRADE_TAB = "home_trade_tab";
        public static final String DEPTHVIEW = "intent_depthview";
        public static final int REQUEST_CODE_FINGER_OPEN = 0X10;
        public static final int REQUEST_CODE_FIND_PWD_2FA = 0x16;
        public static final String MARKET_TYPE = "marketType";
    }
}
